package app.engine.solucoes.request.command;

import javax.servlet.http.HttpServletRequest;

import app.engine.solucoes.request.exception.CommandException;

public class ExitCommand implements Command {

	private String next;
	
	public ExitCommand(String next) {
		this.next = next;
	}
	
	@Override
	public String execute(HttpServletRequest req) throws CommandException {
		req.getSession().removeAttribute("usuario");
		return next;
	}

}
